<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>uCXpresso.BLE: console.h Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../upnp.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">uCXpresso.BLE
   &#160;<span id="projectnumber">v1.0.4</span>
   </div>
   <div id="projectbrief">RTOS C++ Framework for Bluetooth Low Energy</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../modules.html"><span>Modules</span></a></li>
      <li><a href="../../annotated.html"><span>Classes</span></a></li>
      <li><a href="../../examples.html"><span>Examples</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('d0/de3/console_8h_source.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Groups</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">console.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> ===============================================================================</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> Name        : console.h</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> Author      : uCXpresso</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> Version     :</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> Date        : 2014/1/1</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> Copyright   : Copyright (C) www.embeda.com.tw</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> Description :</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> History     :</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> ===============================================================================</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#ifndef CONSOLE_H_</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CONSOLE_H_</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &quot;class/object.h&quot;</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#include &quot;class/smallprintf.h&quot;</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &quot;class/stream.h&quot;</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    ends = 0,</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    endl,</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    dec,</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    hex,</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    oct,</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    flush,</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    ESC = 0x1b</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;}CONSOLE_CTRL_T;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="../../d6/d56/class_console.html">   37</a></span>&#160;<span class="keyword">class </span><a class="code" href="../../d6/d56/class_console.html">Console</a>: <span class="keyword">public</span> <a class="code" href="../../de/db4/class_c_small_printf.html">CSmallPrintf</a> {</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <a class="code" href="../../d6/d56/class_console.html#a8374ffffac8edeaa0775bdd1923bdc10">Console</a>(<a class="code" href="../../d4/d16/class_c_stream.html">CStream</a> &amp;io);</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="../../d6/d56/class_console.html#a855191be30cd0e1eeaea2d6ab7cda03b">isConnected</a>();</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="../../d6/d56/class_console.html#a78bb22aa6e31673a5675986c9c5e3529">echo</a>(<span class="keywordtype">bool</span> set);</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="../../d6/d56/class_console.html#a61f9d57ebeecfd8553f02a84b4939e69">clear</a>();</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="../../d6/d56/class_console.html#a1427b8f1d904381c49188a1f8d8da083">   81</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span>  <a class="code" href="../../d6/d56/class_console.html#a1427b8f1d904381c49188a1f8d8da083">putchar</a>(<span class="keywordtype">int</span> ch) { <span class="keywordflow">return</span> putc(ch); }</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="../../d6/d56/class_console.html#a404cc62475ef74f818d9102bdde09584">   86</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span>  <a class="code" href="../../d6/d56/class_console.html#a404cc62475ef74f818d9102bdde09584">getchar</a>()      { <span class="keywordflow">return</span> getc(); }</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span>  <a class="code" href="../../d6/d56/class_console.html#a0a229393c4d71b47cb68d30397d5de1e">putstr</a>(LPCTSTR str);</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span>  <a class="code" href="../../d6/d56/class_console.html#ab28b81a0b1e462ec0df65ba0a573921f">getstr</a>(LPTSTR strbuf, <span class="keywordtype">size_t</span> size);</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span>  <a class="code" href="../../d6/d56/class_console.html#a3ff57fe349e1335039230e14b9fc0cb1">write</a>(<span class="keyword">const</span> <span class="keywordtype">void</span>* buf, <span class="keywordtype">int</span> size);</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span>  <a class="code" href="../../d6/d56/class_console.html#a10df5763117e36da9f029d1dfa9641be">read</a>(<span class="keywordtype">void</span>* buf, <span class="keywordtype">int</span> size);</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="../../d6/d56/class_console.html#ae80d540e36c5522b8653359e1e4d6839">operator &gt;&gt; </a>(<span class="keywordtype">char</span> &amp;ch);</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="../../d6/d56/class_console.html#ae80d540e36c5522b8653359e1e4d6839">operator &gt;&gt; </a>(uint8_t &amp;b);</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="../../d6/d56/class_console.html">Console</a>&amp; <a class="code" href="../../d6/d56/class_console.html#afc5355f4c4fee0a91c4ba5ae6647f07d">operator &lt;&lt; </a>(TCHAR ch);</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="../../d6/d56/class_console.html">Console</a>&amp; <a class="code" href="../../d6/d56/class_console.html#afc5355f4c4fee0a91c4ba5ae6647f07d">operator &lt;&lt; </a>(LPCTSTR str);</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;</div>
<div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="../../d6/d56/class_console.html#a01e2cf3bdbb5ff14689a8858e12da5ad">  163</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">inline</span> <a class="code" href="../../d6/d56/class_console.html">Console</a>&amp; <a class="code" href="../../d6/d56/class_console.html#afc5355f4c4fee0a91c4ba5ae6647f07d">operator &lt;&lt; </a>(<span class="keywordtype">int</span> val) {</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;        <a class="code" href="../../de/db4/class_c_small_printf.html#a158dc1f45a1f19c8edd63e22544c30cc">putv</a>(val);</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    }</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;</div>
<div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="../../d6/d56/class_console.html#adaabaa6205705e13193e472a4cf7f194">  171</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">inline</span> <a class="code" href="../../d6/d56/class_console.html">Console</a>&amp; <a class="code" href="../../d6/d56/class_console.html#afc5355f4c4fee0a91c4ba5ae6647f07d">operator &lt;&lt; </a>(<span class="keywordtype">float</span> val) {</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;        <a class="code" href="../../de/db4/class_c_small_printf.html#a158dc1f45a1f19c8edd63e22544c30cc">putv</a>((<span class="keywordtype">double</span>)val);</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    }</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;</div>
<div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="../../d6/d56/class_console.html#ab765a1b1954e26b2cb725dc49c35fdeb">  179</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">inline</span> <a class="code" href="../../d6/d56/class_console.html">Console</a>&amp; <a class="code" href="../../d6/d56/class_console.html#afc5355f4c4fee0a91c4ba5ae6647f07d">operator &lt;&lt; </a>(<span class="keywordtype">double</span> val) {</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;        <a class="code" href="../../de/db4/class_c_small_printf.html#a158dc1f45a1f19c8edd63e22544c30cc">putv</a>(val);</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;    }</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;</div>
<div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="../../d6/d56/class_console.html#a756e1e290f184491bf98dfaa1247fff7">  187</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">inline</span> <a class="code" href="../../d6/d56/class_console.html">Console</a>&amp; <a class="code" href="../../d6/d56/class_console.html#afc5355f4c4fee0a91c4ba5ae6647f07d">operator &lt;&lt; </a>(<span class="keywordtype">size_t</span> val) {</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;        <a class="code" href="../../de/db4/class_c_small_printf.html#a158dc1f45a1f19c8edd63e22544c30cc">putv</a>((<span class="keywordtype">unsigned</span>)val);</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;    }</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;</div>
<div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="../../d6/d56/class_console.html#a1da129a9f12eff89f82fc694bdc59231">  195</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">inline</span> <a class="code" href="../../d6/d56/class_console.html">Console</a>&amp; <a class="code" href="../../d6/d56/class_console.html#afc5355f4c4fee0a91c4ba5ae6647f07d">operator &lt;&lt; </a>(uint16_t val) {</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;        <a class="code" href="../../de/db4/class_c_small_printf.html#a158dc1f45a1f19c8edd63e22544c30cc">putv</a>((<span class="keywordtype">unsigned</span>)val);</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;    }</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    <span class="comment">/*A shorthand for write a unsigned integer 32 bits value to console.</span></div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;<span class="comment">     * \return *this.</span></div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00203"></a><span class="lineno"><a class="line" href="../../d6/d56/class_console.html#ad2d3cf94e3a31436681cc0839b760a75">  203</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">inline</span> <a class="code" href="../../d6/d56/class_console.html">Console</a>&amp; <a class="code" href="../../d6/d56/class_console.html#afc5355f4c4fee0a91c4ba5ae6647f07d">operator &lt;&lt; </a>(uint32_t val) {</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;        <a class="code" href="../../de/db4/class_c_small_printf.html#a158dc1f45a1f19c8edd63e22544c30cc">putv</a>((<span class="keywordtype">unsigned</span>)val);</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;    }</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;</div>
<div class="line"><a name="l00211"></a><span class="lineno"><a class="line" href="../../d6/d56/class_console.html#a0b13c2318c5e62763b679c190223de54">  211</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">inline</span> <a class="code" href="../../d6/d56/class_console.html">Console</a>&amp; <a class="code" href="../../d6/d56/class_console.html#afc5355f4c4fee0a91c4ba5ae6647f07d">operator &lt;&lt; </a>(uint8_t val) {</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;        <a class="code" href="../../de/db4/class_c_small_printf.html#a158dc1f45a1f19c8edd63e22544c30cc">putv</a>((<span class="keywordtype">unsigned</span>)val);</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;    }</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="../../d6/d56/class_console.html">Console</a>&amp; <a class="code" href="../../d6/d56/class_console.html#afc5355f4c4fee0a91c4ba5ae6647f07d">operator &lt;&lt; </a>(CONSOLE_CTRL_T ctrl);</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;</div>
<div class="line"><a name="l00229"></a><span class="lineno"><a class="line" href="../../d6/d56/class_console.html#ad4d21815c5cbc33e9015ba5babf5bf09">  229</a></span>&#160;    <span class="keyword">inline</span> <a class="code" href="../../d4/d16/class_c_stream.html">CStream</a>* <a class="code" href="../../d6/d56/class_console.html#ad4d21815c5cbc33e9015ba5babf5bf09">iStream</a>() { <span class="keywordflow">return</span> m_input; }</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;</div>
<div class="line"><a name="l00234"></a><span class="lineno"><a class="line" href="../../d6/d56/class_console.html#af6941f3b8ce87a9e53f58c5a74936d49">  234</a></span>&#160;    <span class="keyword">inline</span> <a class="code" href="../../d4/d16/class_c_stream.html">CStream</a>* <a class="code" href="../../d6/d56/class_console.html#af6941f3b8ce87a9e53f58c5a74936d49">oStream</a>() { <span class="keywordflow">return</span> m_output; }</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;    <a class="code" href="../../d6/d56/class_console.html#a8374ffffac8edeaa0775bdd1923bdc10">Console</a>();</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;    <a class="code" href="../../d6/d56/class_console.html#a8374ffffac8edeaa0775bdd1923bdc10">Console</a>(<a class="code" href="../../d4/d16/class_c_stream.html">CStream</a> &amp;tx, <a class="code" href="../../d4/d16/class_c_stream.html">CStream</a> &amp;rx);</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> assign(<a class="code" href="../../d4/d16/class_c_stream.html">CStream</a> &amp;tx, <a class="code" href="../../d4/d16/class_c_stream.html">CStream</a> &amp;rx);</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> putc(<span class="keywordtype">int</span> ch);</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> getc();</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;    <span class="keyword">virtual</span> LPCTSTR gets();</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;    <a class="code" href="../../d4/d16/class_c_stream.html">CStream</a> *m_output;</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;    <a class="code" href="../../d4/d16/class_c_stream.html">CStream</a> *m_input;</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;    <span class="keywordtype">bool</span>     m_echo;</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;};</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* CONSOLE_H_ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="class_console_html_a1427b8f1d904381c49188a1f8d8da083"><div class="ttname"><a href="../../d6/d56/class_console.html#a1427b8f1d904381c49188a1f8d8da083">Console::putchar</a></div><div class="ttdeci">virtual int putchar(int ch)</div><div class="ttdef"><b>Definition:</b> console.h:81</div></div>
<div class="ttc" id="class_console_html_a10df5763117e36da9f029d1dfa9641be"><div class="ttname"><a href="../../d6/d56/class_console.html#a10df5763117e36da9f029d1dfa9641be">Console::read</a></div><div class="ttdeci">virtual int read(void *buf, int size)</div></div>
<div class="ttc" id="class_console_html_a78bb22aa6e31673a5675986c9c5e3529"><div class="ttname"><a href="../../d6/d56/class_console.html#a78bb22aa6e31673a5675986c9c5e3529">Console::echo</a></div><div class="ttdeci">virtual void echo(bool set)</div></div>
<div class="ttc" id="class_console_html_a855191be30cd0e1eeaea2d6ab7cda03b"><div class="ttname"><a href="../../d6/d56/class_console.html#a855191be30cd0e1eeaea2d6ab7cda03b">Console::isConnected</a></div><div class="ttdeci">virtual bool isConnected()</div></div>
<div class="ttc" id="class_c_stream_html"><div class="ttname"><a href="../../d4/d16/class_c_stream.html">CStream</a></div><div class="ttdef"><b>Definition:</b> stream.h:27</div></div>
<div class="ttc" id="class_console_html_a404cc62475ef74f818d9102bdde09584"><div class="ttname"><a href="../../d6/d56/class_console.html#a404cc62475ef74f818d9102bdde09584">Console::getchar</a></div><div class="ttdeci">virtual int getchar()</div><div class="ttdef"><b>Definition:</b> console.h:86</div></div>
<div class="ttc" id="class_console_html_a61f9d57ebeecfd8553f02a84b4939e69"><div class="ttname"><a href="../../d6/d56/class_console.html#a61f9d57ebeecfd8553f02a84b4939e69">Console::clear</a></div><div class="ttdeci">virtual void clear()</div></div>
<div class="ttc" id="class_console_html_a0a229393c4d71b47cb68d30397d5de1e"><div class="ttname"><a href="../../d6/d56/class_console.html#a0a229393c4d71b47cb68d30397d5de1e">Console::putstr</a></div><div class="ttdeci">virtual int putstr(LPCTSTR str)</div></div>
<div class="ttc" id="class_console_html_af6941f3b8ce87a9e53f58c5a74936d49"><div class="ttname"><a href="../../d6/d56/class_console.html#af6941f3b8ce87a9e53f58c5a74936d49">Console::oStream</a></div><div class="ttdeci">CStream * oStream()</div><div class="ttdef"><b>Definition:</b> console.h:234</div></div>
<div class="ttc" id="class_c_small_printf_html_a158dc1f45a1f19c8edd63e22544c30cc"><div class="ttname"><a href="../../de/db4/class_c_small_printf.html#a158dc1f45a1f19c8edd63e22544c30cc">CSmallPrintf::putv</a></div><div class="ttdeci">int putv(int val)</div></div>
<div class="ttc" id="class_console_html_ae80d540e36c5522b8653359e1e4d6839"><div class="ttname"><a href="../../d6/d56/class_console.html#ae80d540e36c5522b8653359e1e4d6839">Console::operator&gt;&gt;</a></div><div class="ttdeci">virtual void operator&gt;&gt;(char &amp;ch)</div></div>
<div class="ttc" id="class_console_html"><div class="ttname"><a href="../../d6/d56/class_console.html">Console</a></div><div class="ttdoc">The Console class provides a lightweight input/output stream to console. </div><div class="ttdef"><b>Definition:</b> console.h:37</div></div>
<div class="ttc" id="class_console_html_ad4d21815c5cbc33e9015ba5babf5bf09"><div class="ttname"><a href="../../d6/d56/class_console.html#ad4d21815c5cbc33e9015ba5babf5bf09">Console::iStream</a></div><div class="ttdeci">CStream * iStream()</div><div class="ttdef"><b>Definition:</b> console.h:229</div></div>
<div class="ttc" id="class_console_html_ab28b81a0b1e462ec0df65ba0a573921f"><div class="ttname"><a href="../../d6/d56/class_console.html#ab28b81a0b1e462ec0df65ba0a573921f">Console::getstr</a></div><div class="ttdeci">virtual int getstr(LPTSTR strbuf, size_t size)</div></div>
<div class="ttc" id="class_console_html_a3ff57fe349e1335039230e14b9fc0cb1"><div class="ttname"><a href="../../d6/d56/class_console.html#a3ff57fe349e1335039230e14b9fc0cb1">Console::write</a></div><div class="ttdeci">virtual int write(const void *buf, int size)</div></div>
<div class="ttc" id="class_console_html_afc5355f4c4fee0a91c4ba5ae6647f07d"><div class="ttname"><a href="../../d6/d56/class_console.html#afc5355f4c4fee0a91c4ba5ae6647f07d">Console::operator&lt;&lt;</a></div><div class="ttdeci">virtual Console &amp; operator&lt;&lt;(TCHAR ch)</div></div>
<div class="ttc" id="class_console_html_a8374ffffac8edeaa0775bdd1923bdc10"><div class="ttname"><a href="../../d6/d56/class_console.html#a8374ffffac8edeaa0775bdd1923bdc10">Console::Console</a></div><div class="ttdeci">Console(CStream &amp;io)</div></div>
<div class="ttc" id="class_c_small_printf_html"><div class="ttname"><a href="../../de/db4/class_c_small_printf.html">CSmallPrintf</a></div><div class="ttdef"><b>Definition:</b> smallprintf.h:19</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_d9ab3e09413249e340719d1c246acc66.html">Jason Project</a></li><li class="navelem"><a class="el" href="../../dir_e60b0d0338763df7a227cbecf5ac6106.html">Firmware</a></li><li class="navelem"><a class="el" href="../../dir_c8ef7bdfc8622ceb56fdbfff8f44a6b4.html">lpcxpresso</a></li><li class="navelem"><a class="el" href="../../dir_bc2544560b94a5512f672a61310393b1.html">ucxpresso.lite</a></li><li class="navelem"><a class="el" href="../../dir_89b485e3174b4ad30c1cd4b50a79dec9.html">uCXpresso.BLE</a></li><li class="navelem"><a class="el" href="../../dir_ef35519cefd621f663612ebad34cbfc9.html">inc</a></li><li class="navelem"><a class="el" href="../../dir_23b8956a4518e3beec6402c1bb795b19.html">class</a></li><li class="navelem"><b>console.h</b></li>
    <li class="footer">Generated on Fri Apr 11 2014 23:43:26 for uCXpresso.BLE by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
